﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using FacadeSingTowerMall;
using DTOSingTowerMall;


namespace MVCSingTowerMall.Controllers
{
    public class EventsController : Controller
    {
        //
        // GET: /Events/
        EventFacade eventFacade;

        public EventsController()
        {
            eventFacade = new EventFacade();
        }
        
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult SingTowerEvents()
        {
            IQueryable<IEventHallBooking> currentEventsInfo = eventFacade.getCurrentEventsDetails();
            return View(currentEventsInfo);
        }
    }
}
